package com.bootdo.system.domain;

import java.util.ArrayList;
import java.util.List;

public class TbVersionExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public TbVersionExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andOldversionIsNull() {
            addCriterion("oldversion is null");
            return (Criteria) this;
        }

        public Criteria andOldversionIsNotNull() {
            addCriterion("oldversion is not null");
            return (Criteria) this;
        }

        public Criteria andOldversionEqualTo(String value) {
            addCriterion("oldversion =", value, "oldversion");
            return (Criteria) this;
        }

        public Criteria andOldversionNotEqualTo(String value) {
            addCriterion("oldversion <>", value, "oldversion");
            return (Criteria) this;
        }

        public Criteria andOldversionGreaterThan(String value) {
            addCriterion("oldversion >", value, "oldversion");
            return (Criteria) this;
        }

        public Criteria andOldversionGreaterThanOrEqualTo(String value) {
            addCriterion("oldversion >=", value, "oldversion");
            return (Criteria) this;
        }

        public Criteria andOldversionLessThan(String value) {
            addCriterion("oldversion <", value, "oldversion");
            return (Criteria) this;
        }

        public Criteria andOldversionLessThanOrEqualTo(String value) {
            addCriterion("oldversion <=", value, "oldversion");
            return (Criteria) this;
        }

        public Criteria andOldversionLike(String value) {
            addCriterion("oldversion like", value, "oldversion");
            return (Criteria) this;
        }

        public Criteria andOldversionNotLike(String value) {
            addCriterion("oldversion not like", value, "oldversion");
            return (Criteria) this;
        }

        public Criteria andOldversionIn(List<String> values) {
            addCriterion("oldversion in", values, "oldversion");
            return (Criteria) this;
        }

        public Criteria andOldversionNotIn(List<String> values) {
            addCriterion("oldversion not in", values, "oldversion");
            return (Criteria) this;
        }

        public Criteria andOldversionBetween(String value1, String value2) {
            addCriterion("oldversion between", value1, value2, "oldversion");
            return (Criteria) this;
        }

        public Criteria andOldversionNotBetween(String value1, String value2) {
            addCriterion("oldversion not between", value1, value2, "oldversion");
            return (Criteria) this;
        }

        public Criteria andNewversionIsNull() {
            addCriterion("newversion is null");
            return (Criteria) this;
        }

        public Criteria andNewversionIsNotNull() {
            addCriterion("newversion is not null");
            return (Criteria) this;
        }

        public Criteria andNewversionEqualTo(String value) {
            addCriterion("newversion =", value, "newversion");
            return (Criteria) this;
        }

        public Criteria andNewversionNotEqualTo(String value) {
            addCriterion("newversion <>", value, "newversion");
            return (Criteria) this;
        }

        public Criteria andNewversionGreaterThan(String value) {
            addCriterion("newversion >", value, "newversion");
            return (Criteria) this;
        }

        public Criteria andNewversionGreaterThanOrEqualTo(String value) {
            addCriterion("newversion >=", value, "newversion");
            return (Criteria) this;
        }

        public Criteria andNewversionLessThan(String value) {
            addCriterion("newversion <", value, "newversion");
            return (Criteria) this;
        }

        public Criteria andNewversionLessThanOrEqualTo(String value) {
            addCriterion("newversion <=", value, "newversion");
            return (Criteria) this;
        }

        public Criteria andNewversionLike(String value) {
            addCriterion("newversion like", value, "newversion");
            return (Criteria) this;
        }

        public Criteria andNewversionNotLike(String value) {
            addCriterion("newversion not like", value, "newversion");
            return (Criteria) this;
        }

        public Criteria andNewversionIn(List<String> values) {
            addCriterion("newversion in", values, "newversion");
            return (Criteria) this;
        }

        public Criteria andNewversionNotIn(List<String> values) {
            addCriterion("newversion not in", values, "newversion");
            return (Criteria) this;
        }

        public Criteria andNewversionBetween(String value1, String value2) {
            addCriterion("newversion between", value1, value2, "newversion");
            return (Criteria) this;
        }

        public Criteria andNewversionNotBetween(String value1, String value2) {
            addCriterion("newversion not between", value1, value2, "newversion");
            return (Criteria) this;
        }

        public Criteria andPackagesizeIsNull() {
            addCriterion("packagesize is null");
            return (Criteria) this;
        }

        public Criteria andPackagesizeIsNotNull() {
            addCriterion("packagesize is not null");
            return (Criteria) this;
        }

        public Criteria andPackagesizeEqualTo(String value) {
            addCriterion("packagesize =", value, "packagesize");
            return (Criteria) this;
        }

        public Criteria andPackagesizeNotEqualTo(String value) {
            addCriterion("packagesize <>", value, "packagesize");
            return (Criteria) this;
        }

        public Criteria andPackagesizeGreaterThan(String value) {
            addCriterion("packagesize >", value, "packagesize");
            return (Criteria) this;
        }

        public Criteria andPackagesizeGreaterThanOrEqualTo(String value) {
            addCriterion("packagesize >=", value, "packagesize");
            return (Criteria) this;
        }

        public Criteria andPackagesizeLessThan(String value) {
            addCriterion("packagesize <", value, "packagesize");
            return (Criteria) this;
        }

        public Criteria andPackagesizeLessThanOrEqualTo(String value) {
            addCriterion("packagesize <=", value, "packagesize");
            return (Criteria) this;
        }

        public Criteria andPackagesizeLike(String value) {
            addCriterion("packagesize like", value, "packagesize");
            return (Criteria) this;
        }

        public Criteria andPackagesizeNotLike(String value) {
            addCriterion("packagesize not like", value, "packagesize");
            return (Criteria) this;
        }

        public Criteria andPackagesizeIn(List<String> values) {
            addCriterion("packagesize in", values, "packagesize");
            return (Criteria) this;
        }

        public Criteria andPackagesizeNotIn(List<String> values) {
            addCriterion("packagesize not in", values, "packagesize");
            return (Criteria) this;
        }

        public Criteria andPackagesizeBetween(String value1, String value2) {
            addCriterion("packagesize between", value1, value2, "packagesize");
            return (Criteria) this;
        }

        public Criteria andPackagesizeNotBetween(String value1, String value2) {
            addCriterion("packagesize not between", value1, value2, "packagesize");
            return (Criteria) this;
        }

        public Criteria andContentIsNull() {
            addCriterion("content is null");
            return (Criteria) this;
        }

        public Criteria andContentIsNotNull() {
            addCriterion("content is not null");
            return (Criteria) this;
        }

        public Criteria andContentEqualTo(String value) {
            addCriterion("content =", value, "content");
            return (Criteria) this;
        }

        public Criteria andContentNotEqualTo(String value) {
            addCriterion("content <>", value, "content");
            return (Criteria) this;
        }

        public Criteria andContentGreaterThan(String value) {
            addCriterion("content >", value, "content");
            return (Criteria) this;
        }

        public Criteria andContentGreaterThanOrEqualTo(String value) {
            addCriterion("content >=", value, "content");
            return (Criteria) this;
        }

        public Criteria andContentLessThan(String value) {
            addCriterion("content <", value, "content");
            return (Criteria) this;
        }

        public Criteria andContentLessThanOrEqualTo(String value) {
            addCriterion("content <=", value, "content");
            return (Criteria) this;
        }

        public Criteria andContentLike(String value) {
            addCriterion("content like", value, "content");
            return (Criteria) this;
        }

        public Criteria andContentNotLike(String value) {
            addCriterion("content not like", value, "content");
            return (Criteria) this;
        }

        public Criteria andContentIn(List<String> values) {
            addCriterion("content in", values, "content");
            return (Criteria) this;
        }

        public Criteria andContentNotIn(List<String> values) {
            addCriterion("content not in", values, "content");
            return (Criteria) this;
        }

        public Criteria andContentBetween(String value1, String value2) {
            addCriterion("content between", value1, value2, "content");
            return (Criteria) this;
        }

        public Criteria andContentNotBetween(String value1, String value2) {
            addCriterion("content not between", value1, value2, "content");
            return (Criteria) this;
        }

        public Criteria andDownloadurlIsNull() {
            addCriterion("downloadurl is null");
            return (Criteria) this;
        }

        public Criteria andDownloadurlIsNotNull() {
            addCriterion("downloadurl is not null");
            return (Criteria) this;
        }

        public Criteria andDownloadurlEqualTo(String value) {
            addCriterion("downloadurl =", value, "downloadurl");
            return (Criteria) this;
        }

        public Criteria andDownloadurlNotEqualTo(String value) {
            addCriterion("downloadurl <>", value, "downloadurl");
            return (Criteria) this;
        }

        public Criteria andDownloadurlGreaterThan(String value) {
            addCriterion("downloadurl >", value, "downloadurl");
            return (Criteria) this;
        }

        public Criteria andDownloadurlGreaterThanOrEqualTo(String value) {
            addCriterion("downloadurl >=", value, "downloadurl");
            return (Criteria) this;
        }

        public Criteria andDownloadurlLessThan(String value) {
            addCriterion("downloadurl <", value, "downloadurl");
            return (Criteria) this;
        }

        public Criteria andDownloadurlLessThanOrEqualTo(String value) {
            addCriterion("downloadurl <=", value, "downloadurl");
            return (Criteria) this;
        }

        public Criteria andDownloadurlLike(String value) {
            addCriterion("downloadurl like", value, "downloadurl");
            return (Criteria) this;
        }

        public Criteria andDownloadurlNotLike(String value) {
            addCriterion("downloadurl not like", value, "downloadurl");
            return (Criteria) this;
        }

        public Criteria andDownloadurlIn(List<String> values) {
            addCriterion("downloadurl in", values, "downloadurl");
            return (Criteria) this;
        }

        public Criteria andDownloadurlNotIn(List<String> values) {
            addCriterion("downloadurl not in", values, "downloadurl");
            return (Criteria) this;
        }

        public Criteria andDownloadurlBetween(String value1, String value2) {
            addCriterion("downloadurl between", value1, value2, "downloadurl");
            return (Criteria) this;
        }

        public Criteria andDownloadurlNotBetween(String value1, String value2) {
            addCriterion("downloadurl not between", value1, value2, "downloadurl");
            return (Criteria) this;
        }

        public Criteria andEnforceIsNull() {
            addCriterion("enforce is null");
            return (Criteria) this;
        }

        public Criteria andEnforceIsNotNull() {
            addCriterion("enforce is not null");
            return (Criteria) this;
        }

        public Criteria andEnforceEqualTo(Boolean value) {
            addCriterion("enforce =", value, "enforce");
            return (Criteria) this;
        }

        public Criteria andEnforceNotEqualTo(Boolean value) {
            addCriterion("enforce <>", value, "enforce");
            return (Criteria) this;
        }

        public Criteria andEnforceGreaterThan(Boolean value) {
            addCriterion("enforce >", value, "enforce");
            return (Criteria) this;
        }

        public Criteria andEnforceGreaterThanOrEqualTo(Boolean value) {
            addCriterion("enforce >=", value, "enforce");
            return (Criteria) this;
        }

        public Criteria andEnforceLessThan(Boolean value) {
            addCriterion("enforce <", value, "enforce");
            return (Criteria) this;
        }

        public Criteria andEnforceLessThanOrEqualTo(Boolean value) {
            addCriterion("enforce <=", value, "enforce");
            return (Criteria) this;
        }

        public Criteria andEnforceIn(List<Boolean> values) {
            addCriterion("enforce in", values, "enforce");
            return (Criteria) this;
        }

        public Criteria andEnforceNotIn(List<Boolean> values) {
            addCriterion("enforce not in", values, "enforce");
            return (Criteria) this;
        }

        public Criteria andEnforceBetween(Boolean value1, Boolean value2) {
            addCriterion("enforce between", value1, value2, "enforce");
            return (Criteria) this;
        }

        public Criteria andEnforceNotBetween(Boolean value1, Boolean value2) {
            addCriterion("enforce not between", value1, value2, "enforce");
            return (Criteria) this;
        }

        public Criteria andCreatetimeIsNull() {
            addCriterion("createtime is null");
            return (Criteria) this;
        }

        public Criteria andCreatetimeIsNotNull() {
            addCriterion("createtime is not null");
            return (Criteria) this;
        }

        public Criteria andCreatetimeEqualTo(String value) {
            addCriterion("createtime =", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeNotEqualTo(String value) {
            addCriterion("createtime <>", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeGreaterThan(String value) {
            addCriterion("createtime >", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeGreaterThanOrEqualTo(String value) {
            addCriterion("createtime >=", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeLessThan(String value) {
            addCriterion("createtime <", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeLessThanOrEqualTo(String value) {
            addCriterion("createtime <=", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeLike(String value) {
            addCriterion("createtime like", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeNotLike(String value) {
            addCriterion("createtime not like", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeIn(List<String> values) {
            addCriterion("createtime in", values, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeNotIn(List<String> values) {
            addCriterion("createtime not in", values, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeBetween(String value1, String value2) {
            addCriterion("createtime between", value1, value2, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeNotBetween(String value1, String value2) {
            addCriterion("createtime not between", value1, value2, "createtime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeIsNull() {
            addCriterion("updatetime is null");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeIsNotNull() {
            addCriterion("updatetime is not null");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeEqualTo(String value) {
            addCriterion("updatetime =", value, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeNotEqualTo(String value) {
            addCriterion("updatetime <>", value, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeGreaterThan(String value) {
            addCriterion("updatetime >", value, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeGreaterThanOrEqualTo(String value) {
            addCriterion("updatetime >=", value, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeLessThan(String value) {
            addCriterion("updatetime <", value, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeLessThanOrEqualTo(String value) {
            addCriterion("updatetime <=", value, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeLike(String value) {
            addCriterion("updatetime like", value, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeNotLike(String value) {
            addCriterion("updatetime not like", value, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeIn(List<String> values) {
            addCriterion("updatetime in", values, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeNotIn(List<String> values) {
            addCriterion("updatetime not in", values, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeBetween(String value1, String value2) {
            addCriterion("updatetime between", value1, value2, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeNotBetween(String value1, String value2) {
            addCriterion("updatetime not between", value1, value2, "updatetime");
            return (Criteria) this;
        }

        public Criteria andWeighIsNull() {
            addCriterion("weigh is null");
            return (Criteria) this;
        }

        public Criteria andWeighIsNotNull() {
            addCriterion("weigh is not null");
            return (Criteria) this;
        }

        public Criteria andWeighEqualTo(Integer value) {
            addCriterion("weigh =", value, "weigh");
            return (Criteria) this;
        }

        public Criteria andWeighNotEqualTo(Integer value) {
            addCriterion("weigh <>", value, "weigh");
            return (Criteria) this;
        }

        public Criteria andWeighGreaterThan(Integer value) {
            addCriterion("weigh >", value, "weigh");
            return (Criteria) this;
        }

        public Criteria andWeighGreaterThanOrEqualTo(Integer value) {
            addCriterion("weigh >=", value, "weigh");
            return (Criteria) this;
        }

        public Criteria andWeighLessThan(Integer value) {
            addCriterion("weigh <", value, "weigh");
            return (Criteria) this;
        }

        public Criteria andWeighLessThanOrEqualTo(Integer value) {
            addCriterion("weigh <=", value, "weigh");
            return (Criteria) this;
        }

        public Criteria andWeighIn(List<Integer> values) {
            addCriterion("weigh in", values, "weigh");
            return (Criteria) this;
        }

        public Criteria andWeighNotIn(List<Integer> values) {
            addCriterion("weigh not in", values, "weigh");
            return (Criteria) this;
        }

        public Criteria andWeighBetween(Integer value1, Integer value2) {
            addCriterion("weigh between", value1, value2, "weigh");
            return (Criteria) this;
        }

        public Criteria andWeighNotBetween(Integer value1, Integer value2) {
            addCriterion("weigh not between", value1, value2, "weigh");
            return (Criteria) this;
        }

        public Criteria andStatusIsNull() {
            addCriterion("status is null");
            return (Criteria) this;
        }

        public Criteria andStatusIsNotNull() {
            addCriterion("status is not null");
            return (Criteria) this;
        }

        public Criteria andStatusEqualTo(String value) {
            addCriterion("status =", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotEqualTo(String value) {
            addCriterion("status <>", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusGreaterThan(String value) {
            addCriterion("status >", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusGreaterThanOrEqualTo(String value) {
            addCriterion("status >=", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLessThan(String value) {
            addCriterion("status <", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLessThanOrEqualTo(String value) {
            addCriterion("status <=", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLike(String value) {
            addCriterion("status like", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotLike(String value) {
            addCriterion("status not like", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusIn(List<String> values) {
            addCriterion("status in", values, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotIn(List<String> values) {
            addCriterion("status not in", values, "status");
            return (Criteria) this;
        }

        public Criteria andStatusBetween(String value1, String value2) {
            addCriterion("status between", value1, value2, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotBetween(String value1, String value2) {
            addCriterion("status not between", value1, value2, "status");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}